import VueCookies from 'vue-cookies'
export function getCookie (key) {
  if (VueCookies.isKey(key)) {
    return VueCookies.get(key)
  } else {
    return localStorage.getItem(key)
  }
}

export function setCookie (key, value) {
  localStorage.setItem(key, value)
  return VueCookies.set(key, value)
}

export function removeCookie (key) {
  localStorage.removeItem(key)
  return VueCookies.remove(key)
}
